package com.atmilan.quartz.model.dto.buyer;

import java.math.BigDecimal;
import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import lombok.Data;

/**
 * 商品SKU对象 t_product_sku
 * 
 * @author muyu
 * @date 2020-09-07
 */
@Data
public class ProductSkuDTO extends BaseDTO
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;
    /** 属性IDS */
    private String properties;
    /** $column.columnComment */
    private BigDecimal price;

    /** 商品名称 */
    private String productName;

    private Integer onSaleStatus;

    private   String      productCode;

    private String productCoverImage;

    private String categoryName;

    private String brandName;

    private String skuJson;

    private Long productId;


    private String tag;

    private String   productImgsUrl;





    private Integer  totalStock;
    private BigDecimal  minPrice;

    //供应商列表
    private List<ProductSkuSupplierDTO> supplierList;


    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("properties", getProperties())
            .append("price", getPrice())
            .append("remark", getRemark())
            .append("createTime", getCreateTime())
            .append("creator", getCreator())
            .append("editTime", getEditTime())
            .append("editor", getEditor())
            .append("productName", getProductName())
            .toString();
    }
}
